﻿//----------T_Contract开始----------
using Dapper;
using System;
namespace R.DMS.Data
{

    /// <summary>
    /// 数据表实体类：合同 合同记录表
    /// </summary>
    [Table("T_Contract")]
    public class ContractEntity
    {

        /// <summary>
        /// Int32:编号
        /// </summary>                       
        [Key]
        public Int32 C_Id { get; set; }

        /// <summary>
        /// String:合同名称
        /// </summary>                       
        public String C_ContractName { get; set; }

        /// <summary>
        /// Byte:合同状态 0未执行的、1正在执行的、2执行完的
        /// </summary>                       
        public Byte C_Status { get; set; }

        /// <summary>
        /// 状态描述
        /// </summary>
        [Editable(false)]
        public String C_StatusDesc
        {
            get
            {
                return G_IS.Comm.EnumHelper.GetDesByValue<EnumContractStatus>(C_Status);
            }
        }

        /// <summary>
        /// Boolean:无效标识 1无效、0有效
        /// </summary>                       
        public Boolean C_DeleteFlag { get; set; }

        /// <summary>
        /// String:客户编号
        /// </summary>                       
        public String C_CustomerNo { get; set; }

        /// <summary>
        /// String:客户名称
        /// </summary>                       
        public String C_CustomerName { get; set; }

        /// <summary>
        /// DateTime:更新时间 默认为当前时间
        /// </summary>                       
        public DateTime C_CreateTime { get; set; }

        /// <summary>
        /// String:创建人编号 当前用户ID
        /// </summary>                       
        public String C_CreatorUserId { get; set; }

        /// <summary>
        /// String:创建人名称
        /// </summary>                       
        public String C_CreatorUserName { get; set; }

        /// <summary>
        /// DateTime:更新时间
        /// </summary>                       
        public DateTime? C_UpdateTime { get; set; }

        /// <summary>
        /// String:更新人编号 当前用户ID
        /// </summary>                       
        public String C_UpdateUserId { get; set; }

        /// <summary>
        /// String:更新人名称
        /// </summary>                       
        public String C_UpdateUserName { get; set; }

        /// <summary>
        /// String:备注
        /// </summary>                       
        public String C_Remark { get; set; }

    }
}

//----------T_Contract结束----------

